/*
 * @author java_deng
 * @date 2024/11/29 10:01
 * @description
 */
package org.hbwl.controller;

import org.hbwl.utils.ResponseData;

public class BaseController {
    public ResponseData success(Object data){
        return new ResponseData("200","操作成功",data);
    }
    public ResponseData success(String msg,Object data){
        return new ResponseData("200",msg,data);
    }
    public ResponseData fail(Object data){
        return new ResponseData("400","请求失败",data);
    }
    public ResponseData fail(String msg){
        return new ResponseData("400",msg,null);
    }
    public ResponseData success(String msg){
        return new ResponseData("200",msg,null);
    }
}
